# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: BSD-3-Clause

if(ANDROID)
    add_subdirectory(android)
endif()
if(NOT WASM)
    add_subdirectory(minimal)
endif()
if(QT_FEATURE_freetype AND NOT WASM)
    add_subdirectory(offscreen)
endif()
if(QT_FEATURE_xcb)
    add_subdirectory(xcb)
endif()
if(UIKIT AND NOT WATCHOS)
    add_subdirectory(ios)
endif()
if(MACOS)
    add_subdirectory(cocoa)
endif()
if(WIN32)
    add_subdirectory(windows)
endif()
if(QT_FEATURE_direct2d1_1 AND QT_FEATURE_directwrite)
    add_subdirectory(direct2d)
endif()
if(QNX)
    add_subdirectory(qnx)
endif()
if(QT_FEATURE_eglfs)
    add_subdirectory(eglfs)
    add_subdirectory(minimalegl)
endif()
if(QT_FEATURE_directfb)
    add_subdirectory(directfb)
endif()
if(QT_FEATURE_linuxfb)
    add_subdirectory(linuxfb)
endif()
if(QT_FEATURE_vnc AND TARGET Qt::Network)
    add_subdirectory(vnc)
endif()
if(FREEBSD)
    # add_subdirectory(bsdfb) # TODO: QTBUG-112768
endif()
if(HAIKU)
    # add_subdirectory(haiku) # TODO: QTBUG-112768
endif()
if(WASM)
     add_subdirectory(wasm)
endif()
if(QT_FEATURE_integrityfb)
    # add_subdirectory(integrity) # TODO: QTBUG-112768
endif()
if(QT_FEATURE_vkkhrdisplay)
    add_subdirectory(vkkhrdisplay)
endif()
if(QT_FEATURE_wayland)
    add_subdirectory(wayland)
endif()

